package com.wbc;

import com.wbc.config.DynamicCompiler;

public class Test {


    private void TT(){
        System.out.println("tttt");
    }

    public static void main(String[] args) throws ClassNotFoundException {
        DynamicCompiler dynamicCompiler = new DynamicCompiler();

        Class aClass = dynamicCompiler.compileAndLoad("com.wbc.He", "package com.wbc;\n" +
                "\n" +
                "public class He {\n" +
                "\n" +
                "  private void TT(){\n" +
                "      System.out.println(\"321321\");\n" +
                "  }\n" +
                "}\n");


        ReflectionUtil test = new ReflectionUtil("He");
        Object tt = test.runMethod("TT");
        System.out.println(tt);



    }
}
